package com.weasel.im.server.initializer;

import com.weasel.im.common.manager.IMSessionManager;
import com.weasel.im.common.manager.LeaveMessageCacheManager;
import com.weasel.im.common.manager.UserSessionRelationManager;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * Created by Dylan on 2015/12/3.
 */
public abstract class AbstractChannelInitializer extends ChannelInitializer<SocketChannel> {

    protected IMSessionManager sessionManager;
    protected UserSessionRelationManager relationManager;
    protected LeaveMessageCacheManager leaveMessageCacheManager;

    public AbstractChannelInitializer(IMSessionManager sessionManager, UserSessionRelationManager relationManager, LeaveMessageCacheManager leaveMessageCacheManager) {
        this.sessionManager = sessionManager;
        this.relationManager = relationManager;
        this.leaveMessageCacheManager = leaveMessageCacheManager;
    }
}
